<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                template="/WEB-INF/template/menu-template.xhtml">s

    <ui:define name="metadata">
        <f:metadata>
            <f:viewParam name="id" value="#{postBean.id}"/>
            <f:viewAction action="#{postBean.initPost()}"/>
        </f:metadata>
        <ui:param name="menuIndex" value="1" />
    </ui:define>

    <ui:define name="content">
        <h:form>
            <div class="post">
                    <p:panel styleClass="postPanel" header="#{postBean.post.title}" style="margin-bottom:20px">
                        <div class="postText">
                            <h:outputText value="#{postBean.post.content}"/>
                        </div>

                        <h:outputText styleClass="createDate" value="#{postBean.post.createDate}">
                            <f:convertDateTime pattern="d-M-yyyy"/>
                        </h:outputText>

                        <h:outputText styleClass="author" value=" by "/>

                        <h:outputText styleClass="author" value="#{postBean.post.createdBy.firstName}"/>
                    </p:panel>
            </div>

            <div class="calendar">
                <p:calendar styleClass="indexCalendar" value="#{calendarView.date}" mode="inline"/>
            </div>

        </h:form>


    </ui:define>
</ui:composition>